package org.infosys.org.service.impl;

import org.infosys.basic.service.impl.BaseServiceImpl;
import org.infosys.org.domain.Employee;
import org.infosys.org.mapper.EmployeeMapper;
import org.infosys.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;


    @Override
    public void save(Employee employee) {
        // 设置初始密码
        employee.setPassword("infosys888");
        employeeMapper.save(employee);
    }

}
